<%-- 
    Document   : categoria
    Created on : 17/05/2010, 19:06:35
    Author     : 711034
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>

    <jsp:useBean id="categoriaBean" beanName="lojavirtual.bean.CategoriaBean"
                 type="lojavirtual.bean.CategoriaBean"/>

    <body>

        <table border="1">

            <thead>
                <tr>
                    <td>Categoria</td>
                    <td>Descrição</td>
                    <td></td>
                </tr>
            </thead>

            <c:forEach var="item" items="${categoriaBean.categorias}">
                <tr>
                    <td><c:out value="${item.nome}"/></td>
                    <td><c:out value="${item.descricao}"/></td>
                    <td><input type="checkbox" value="${item.id}"/></td>
                </tr>
            </c:forEach>

        </table>

    </body>
</html>
